<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<%@ page language="java" import="java.util.*" pageEncoding="utf-8" %>
<%@ include file="/common/taglibs.jsp" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>系统管理</title>
    <%@ include file="/common/util.jsp" %>
    <script type="text/javascript">
        function addOPerate() {
            window.location.href = "${cdnctx}/operate/operateedit.shtml?customerinfoid=${customerinfoid }";
        }

        function updateOPerate(operateId) {
            window.location.href = "${cdnctx}/operate/operateedit.shtml?customerinfoid=${customerinfoid }&operateId=" + operateId;
        }

        function deleteOPerate(operateId) {
            dialog_confirmled("确定删除吗？", function () {
                window.location.href = "${cdnctx}/operate/deleteoperate.shtml?id=" + operateId;
            });
        }

        function jumpPage(pageIndex) {
            window.location.href = "${cdnctx}/operate/operatelist.shtml?pageIndex=" + pageIndex;
        }
    </script>
</head>
<body class="main">
<div class="-frame -style -luster" id="css_container">
    <!--首页框架页眉部分↓-->
    <%@ include file="/WEB-INF/pages/inc/header.jsp" %>
    <!--首页框架页眉部分↑-->

    <div class="content">

        <!-- Left导航菜单◎开始 -->
        <%@ include file="/WEB-INF/pages/inc/leftmenu.jsp" %>
        <!-- Left导航菜单◎结束 -->

        <div class="main-mid">
            <div class="pos"><img src="${cdnctx}/src/index/img/index.png"> <a
                    href="${cdnctx}/system/customerinfo/customerList.shtml">能源管理 </a>><a
                    href="${cdnctx}/operate/operatelist.shtml?customerinfoid=${customerInfo.id }">${customername}_运营列表 </a>
                <span style="float: right;margin-right: 25px;"><a
                        href="${cdnctx}/business/init.shtml?companycode=${companycode }">项目实施</a> |
                    <a href="${cdnctx}/energy/AreaEnergy.shtml?customerinfoid=${customerInfo.id}">区域管理</a>
                    <%--<a href="${cdnctx}/economicBenefit/devicestatus.shtml?companycode=${companycode }">设备状态</a>--%>
                </span>
            </div>
            <div class="css_contentDiv">
                <form id="searchLoginForm" action="${cdnctx}/operate/operatelist.shtml" method="post">
                    <div style="padding:10px;">
                        <input type="button" class="add_btn" value="新&nbsp;增" onclick="addOPerate()"/>
                    </div>
                </form>
                <div class="divTable">
                    <div style="height:420px;background-color:white">
                        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="list_table">
                            <thead>
                            <tr>
                                <td>公司番号</td>
                                <td>公司名</td>
                                <td>时间</td>
                                <td>营业额</td>
                                <td>操作</td>
                            </tr>
                            </thead>
                            <c:if test="${empty(list) }">
                                <tr class="even" align="center" style="color:red">
                                    <td colspan="7" class="no-data" style="height: 300px;"></td>
                                </tr>
                            </c:if>
                            <c:if test="${not empty(list) }">
                                <c:forEach items="${list}" var="entity" varStatus="status">
                                    <tr>
                                        <td>${entity.companycode}</td>
                                        <td>${entity.customername}</td>
                                        <td>${entity.currentdate}</td>
                                        <td>${entity.sale}</td>
                                        <td>
                                            <input id='newbutton' type='button' class='list_update_btn'
                                                   onclick='updateOPerate(${entity.id})' value='修改'/>
                                            <input id='newbutton' type='button' class='list_delete_btn'
                                                   onclick='deleteOPerate(${entity.id})' value='删除'/>
                                        </td>
                                    </tr>
                                </c:forEach>
                            </c:if>
                        </table>
                    </div>
                    <c:if test="${not empty(list) }">
                        <div id="pageInfo" class="pageJump">
                            <script type="text/javascript">
                                pagination.getPaginationHtml('JavaScript:jumpPage({0})', ${pageIndex}, ${pageCount}, 'pageInfo');
                            </script>
                            <c:if test="${!empty(list) }">
                                共有${dataCount}条数据
                            </c:if>
                        </div>
                    </c:if>
                </div>
            </div>
        </div>

    </div>

    <!--首页框架页尾部分↓-->
    <%@ include file="/WEB-INF/pages/inc/footer.jsp" %>
    <!--首页框架页尾部分↑-->
</div>
</body>
</html>